package com.hn.controller;

import com.hn.log.core.OperationLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * hanni
 * 2019/2/20 0020
 * 19:15
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping
    @OperationLog   //添加自定义注解的方法可以进行切面，没有添加OperationLog注解的方法不进行切面
    public String hello() {

        return "hello";

    }

    @GetMapping("/a")
    public String hello2(){

        return "hello2";
    }
}
